<?php
session_start();

 if($_SESSION['fl']!=1)
{
	header("Location:booking.php");
}

$s=$_SESSION['$user'];



?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<link rel="stylesheet" type="text/css" href="goplaces.css" />
<script type="text/javascript" src="getcode.js">
</script>
<body>

<form name="booking1" action="payment.php" method="post" onsubmit="return validate()" onload>
<div id="header">
		<a href="home.html" class="logo"><img src="images/logo.jpg" alt="" width="274" height="90" /></a>		
         		
  		<a class="facebook">  <iframe src="http://www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FETrawels%2F132726943479075&amp;width=150&amp;colorscheme=light&amp;show_faces=false&amp;border_color&amp;stream=false&amp;header=false&amp;height=62" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:80px;" allowtransparency="true"></iframe></a>
 																														
	  <a href="http://twitter.com/etrawels" class="twitter-follow-button" data-show-count="false" >Follow @etrawels</a>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script> 


		<ul id="menu">
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
			<li><a href="home.html" >Home Page</a></li>
			<li><a href="aboutus.html" >Company Profile</a></li>
			<li><a href="tours.html" >Tours and Packages</a></li>
			<li><a href="visa.html">Visa Procedures & Assistance</a></li>
			<li><a href="booking.php" >Bookings</a></li>
			<li><a href="feedback.php" >Feedback</a></li>
			<li><a href="Sitemap.html">Sitemap</a></li>
			<li><a href="maps.html" >Trip Planner</a></li>
			
	  </ul>
	</div>
    <div id="bookwrapper">
    
    <div id="bon">
  <p><img src="images/one.gif" /> <img src="images/l2.gif" /><img src="images/l4.gif" /> <img src="images/l3.gif" /><img src="images/l5.gif" />
  <c> Step 2 of 3: Choose your trip and enter tour details</c></p>
     </div>
   
   <div id="bookleft">
Welcome <?php echo $s?>,
<p>
<br />
Thank you for choosing eTrawel mart as your preferred tour operator, we provide you the best of service available throughout the globe.
<br/>
Please select your desired tour and provide us with the trip details, 2 simple steps and Bon Voyage!! :)
</p>
</div>


<div id="bookright">
   <p>Trip name:
   
     <select  name="tripname" onchange=" getcode(this.value)"/>
     <option>--Select--</option>
      <?php 
$con=mysql_connect('localhost','root','');
if(!$con)
{
  die('could not connect:'.mysql_error());
  }
  mysql_select_db("ETrawelMart",$con);
  
 
  
  $check=mysql_query("SELECT * FROM tours");
  
while ($row=mysql_fetch_array($check)){ 

$tourname=$row['name'];

print "<option>$tourname</option>";

} 
  
  
  
  
  
  	 
?>
     
    
     </select>
    Trip code:   
   
     <input type="text" name="tripcode" disabled="disabled"/  >
   <br /> <br />
   <p>No.of Passengers  
     <select name="no_of_pass"/ onkeypress="return chknum()" width="25">
    <option>--select-- <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> <option>7</option> <option>8</option> <option>9</option> 
     </select>
</p><br />
<p>How many?</p>
<p>Veg <select name="veg"/><option>--select--</option><option>0</option><option>1</option><option>2</option><option>3</option><option>4</option><option>5</option><option>6</option><option>7</option><option>8</option><option>9</option></select>
  Non Veg  <select name="non_veg"/><option>--select--</option><option>0</option><option>1</option><option>2</option><option>3</option><option>4</option><option>5</option><option>6</option><option>7</option><option>8</option><option>9</option></select></p><br />
<p>Do you want travel insurance:
  <select name="yn"> 
    <option>yes</option>
    <option>no</option>
  </select>
</p><br />
<p>Date of Travel: 
  <select name="td"> 
    <option>01 </option>
    <option>02 </option> 
    <option>03</option> 
    <option>04 </option>
    <option>05 </option>
    <option>06 </option>
    <option>07 </option>
    <option>08 </option> 
    <option>09 </option>
    <option>10 </option>
    <option>11 </option>
    <option>12 </option>
    <option>13 </option>
    <option>14 </option>
    <option>15 </option>
    <option>16 </option>
    <option>17 </option>
    <option>18 </option>
    <option>19 </option>
    <option>20</option> 
    <option >21</option> 
    <option >22</option> 
    <option >23</option> 
    <option >24</option> 
    <option >25</option> 
    <option >26</option> 
    <option >27</option> 
    <option>28</option> 
    <option >29</option> 
    <option >30</option> 
    <option >31</option>
  </select>
  <select name="tm"> 
    <option>01</option>
    <option>02 </option>
    <option>03 </option>
    <option>04 </option>
    <option>05 </option>
    <option>06 </option>
    <option>07 </option>
    <option>08 </option>
    <option>09 </option>
    <option>10 </option>
    <option>11 </option>
    <option>12 </option>
  </select> 
  <select name="ty"> 
    <option>2011 </option> 
    <option>2012 </option>
    <option>2013 </option>
    <option>2014 </option>
  </select> 
</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<br />
<input type="submit" value="submit" /> <input type="reset" value="clear" />
</div>
 
   
</div>
    
    
    
    
    
    
    
    
    
    
    
    
    <div id="footer">
		<ul>
			<li></li>
			<li></li>
			<li></li>
			<li></li>
			<li><a href="home.html">Home Page</a>|</li>
			<li><a href="aboutus.html">Company Profile</a>|</li>
			<li><a href="tours.html">Tours and Packages</a>|</li>
			<li><a href="Visa.html">Visa Procedures & Assistance</a>|</li>
            <li><a href="Bookings.html">Bookings</a>|</li>
			<li><a href="Feedback.html">Feedback</a>|</li>
			<li><a href="Sitemap.html">Sitemap</a>|</li>
			<li><a href="Tripplanner.html">Trip Planner</a>|</li>
		</ul>
																																																					
	</div>
    </form>
</body>
</html>